package jp.co.sn.mml.pojo.tdTkKskKeka;


public class TdTkKskKekaId implements java.io.Serializable { 

	//受付日
	private Long ukeYmd;
	//検査番号
	private Long ksNo;
	//項目コード
	private String itemCd;

	/** default constructor */
	public TdTkKskKekaId(){

	}

	/** full constructor */
	public TdTkKskKekaId(Long ukeYmd,Long ksNo,String itemCd){
		this.ukeYmd = ukeYmd;
		this.ksNo = ksNo;
		this.itemCd = itemCd;
	}

	//Property accessors
	public Long getUkeYmd(){
		return this.ukeYmd;
	}

	public void setUkeYmd(Long ukeYmd){
		this.ukeYmd=ukeYmd;
	}

	public Long getKsNo(){
		return this.ksNo;
	}

	public void setKsNo(Long ksNo){
		this.ksNo=ksNo;
	}

	public String getItemCd(){
		return this.itemCd;
	}

	public void setItemCd(String itemCd){
		this.itemCd=itemCd;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof TdTkKskKekaId))
			return false;

		TdTkKskKekaId castOther = (TdTkKskKekaId) other;

		return ((this.getUkeYmd() ==  castOther.getUkeYmd())
				||(this.getUkeYmd()!=null && castOther.getUkeYmd() !=null 
					&& castOther.getUkeYmd() !=null 
					&& this.getUkeYmd().equals(castOther.getUkeYmd())))
			&& ((this.getKsNo() ==  castOther.getKsNo())
				||(this.getKsNo()!=null && castOther.getKsNo() !=null 
					&& castOther.getKsNo() !=null 
					&& this.getKsNo().equals(castOther.getKsNo())))
			&& ((this.getItemCd() ==  castOther.getItemCd())
				||(this.getItemCd()!=null && castOther.getItemCd() !=null 
					&& castOther.getItemCd() !=null 
					&& this.getItemCd().equals(castOther.getItemCd())))
;	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getUkeYmd() == null ? 0 : this.getUkeYmd().hashCode());
		result = 37 * result
				+ (getKsNo() == null ? 0 : this.getKsNo().hashCode());
		result = 37 * result
				+ (getItemCd() == null ? 0 : this.getItemCd().hashCode());
		return result;
	}

}